package com.rules.admin.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rules.admin.dao.UnitCaseExpectActionDao;
import com.rules.admin.entity.UnitCaseExpectAction;
import com.rules.admin.service.UnitCaseExpectActionService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UnitCaseExpectActionServiceImpl extends ServiceImpl<UnitCaseExpectActionDao, UnitCaseExpectAction> implements UnitCaseExpectActionService {
   public List<UnitCaseExpectAction> getAllActionByCaseId(Long unitCaseId) {
      LambdaQueryWrapper<UnitCaseExpectAction> queryWrapper = new LambdaQueryWrapper<>();
      queryWrapper.eq(UnitCaseExpectAction::getUnitCaseId,unitCaseId);
      return this.baseMapper.selectList(queryWrapper);
   }
}
